<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script type='module'>
        // CommonJS和AMD
        // ES6 module 
        import Person,{name,age,sayName} from './modules/index.js'
        // import * as f from './modules/index.js'
        // console.log(Person);
        const p = new Person();
        p.sayAge();
        // console.log(f.default);
        // console.log(name,age,sayName());
    </script>
</body>

</html>